package cn.tx.service.Impl;

import cn.tx.dao.Course1Dao;
import cn.tx.dao.GradeDao;
import cn.tx.model.Course1;
import cn.tx.model.Grade;
import cn.tx.service.Course1Service;
import cn.tx.service.GradeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class Course1ServiceImpl implements Course1Service{
    @Autowired
    Course1Dao course1Dao;
    @Override
    public int addCourse1(Course1 course1){
        return course1Dao.addCourse1(course1);
    }
    @Override
    public List<Course1> findList(Map<String,Object> querymap){
        return course1Dao.findList(querymap);
    }
    @Override
    public List<Course1> findAll(){
        return course1Dao.findAll();
    }
    @Override
    public int UpdateCourse1ById(Course1 course1){
        return course1Dao.UpdateCourse1ById(course1);
    }
    @Override
    public int delete(String ids){
        return course1Dao.delete(ids);
    }
    @Override
    public int findTotal(Map<String,Object> querymap){
        return course1Dao.findTotal(querymap);
    }

}